﻿@using StudentInfo.Areas.StudentArea.Resources.Views.Shared
@model IEnumerable<StudentInfo.Areas.StudentArea.ViewModels.ExamViewModel>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Экзамены</h2>

<p>
    @Html.ActionLink(@SharedStrings.Create, "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
           @Html.LabelFor(model => model.First().ExamName)
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(@SharedStrings.Edit, "Edit", new { examId=item.Id }) |
            @Html.ActionLink(@SharedStrings.Details, "Details", new { examId = item.Id }) |
            @Html.ActionLink(@SharedStrings.Delete, "Delete", new { examId = item.Id })
        </td>
        <td>
            @item.ExamName
        </td>
    </tr>
}

</table>